﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;
using NDeployer.Stub;

namespace NDeployer.Studio.Model
{
    public class TaskMetadataProvider : SingletonObject<TaskMetadataProvider>
    {
        
        private TaskMetadataProvider() { }

        public ObservableCollection<TaskMetadata> Read()
        {

            return new ObservableCollection<TaskMetadata>( TasksRepositoryStub.Instance.Read().Select(a => new TaskMetadata(a)).ToList());

        }
    }
}
